﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Form.Master" AutoEventWireup="true" CodeBehind="Form.aspx.cs" Inherits="BBPA.Admin.SYS.Supplier.Form"  validateRequest="false"%>
<%@ MasterType VirtualPath="~/Form.Master" %>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <%--本页--%>
    <script type="text/javascript" src="/ckeditor/ckeditor.js" mce_src="/ckeditor/ckeditor.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_main" runat="server">
     <div class="control-group">
        <label class="control-label">
            供货商名称
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Name" runat="server"   required="required" placeholder="必填" ></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            简称
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_ShortName" runat="server" ></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            登陆密码
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Password" runat="server" ></asp:TextBox>
            <p id="tb_Password_helper" runat="server" visible="false" class="help-block">不修改则留空</p>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            负责人
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Contacts" runat="server"   required="required" placeholder="必填"></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            办公电话
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Tel_area" runat="server" CssClass="input-mini" placeholder="区号" MaxLength="4"></asp:TextBox> - <asp:TextBox ID="tb_Tel_real" runat="server" CssClass="input-small" placeholder="固话"></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            手机
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Mobile" runat="server"   required="required" placeholder="必填"></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            省
        </label>
        <div class="controls">
            <select id="Province" name="Province" class="span3"></select>
                    <asp:TextBox ID="tb_Province" runat="server"  CssClass="hide"></asp:TextBox>
                    
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            市
        </label>
        <div class="controls">
            <select id="City" name="City" class="span3"></select>
                    <asp:TextBox ID="tb_City" runat="server"  CssClass="hide"></asp:TextBox>
                    <asp:TextBox ID="tb_CityNo" runat="server"  CssClass="hide"></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            区县
        </label>
        <div class="controls">
                    <select id="Area" name="Area" class="span3"></select>
                    <asp:TextBox ID="tb_Area" runat="server"  CssClass="hide"></asp:TextBox>
        </div>
    </div>
     
     <div class="control-group">
        <label class="control-label">
            详细地址
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Address" runat="server" ></asp:TextBox>
            <p class="help-inline">建议输入格式：XX路XX号</p>
        </div>
    </div>
 
     <div class="control-group">
        <label class="control-label">
            
        </label>
        <div class="controls">
            <label class="checkbox inline">后付款<asp:CheckBox ID="cb_IsLatePay" runat="server" /></label>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            
        </label>
        <div class="controls">
            <label class="checkbox inline">送货<asp:CheckBox ID="cb_Delivery" runat="server" /></label>
        </div>
    </div>
     <div class="control-group" id="group_IsLock" runat="server">
        <label class="control-label">
            
        </label>
        <div class="controls">
            <label class="checkbox inline">锁定<asp:CheckBox ID="cb_IsLock" runat="server" /></label>
        </div>
    </div>
    <div class="control-group" id="group_StateCheck" runat="server" >
        <label class="control-label">
            
        </label>
        <div class="controls">
            <label class="checkbox inline"><asp:CheckBox ID="cb_StateCheck" runat="server" Text="通过审核" /></label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            <div class="btn CkFinderSinglePicOpener" data-target="tb_Pic" data-title="供货商"><i class="fa fa-picture-o choosepic"></i><span class="OpenerHtml">点击选择图片</span></div>
        </label>
        <div class="controls">
                <asp:TextBox ID="tb_Pic" runat="server"  CssClass="input_text" style="display:none;"></asp:TextBox>
        </div>
    </div>
  
        <div class=" ckeditorBox">
            <asp:TextBox ID="tb_Description" runat="server" CssClass="ckeditor" TextMode="MultiLine"></asp:TextBox>
        </div>
    
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_bottom" runat="server">
<script>
    var default_province, default_city, default_area;
    var tb_Province, tb_City, tb_Area;
    var tb_CityNo;
    $(function () {
        tb_Province=$("[name$=tb_Province]");
        tb_City=$("[name$=tb_City]");
        tb_Area = $("[name$=tb_Area]");

        tb_CityNo = $("[name$=tb_CityNo]");

        var province_val = tb_Province.val();
        var city_val = tb_City.val();
        var area_val = tb_Area.val();

        if (province_val == "") province_val = "河南省";
        new PCAS("Province", "City", "Area", province_val, city_val, area_val, function () {
            //$("select").select2();
            tb_Province.val($("#Province").val());
            tb_City.val($("#City").val());
            tb_Area.val($("#Area").val());
            //
            tb_CityNo.val(Get_CityNo($("#City").val()));
            $("select").not("[data-noselect2]").select2();
        });
        //$("select").not("[data-noselect2]").select2();
       // $("select").select2();

    })
    
    </script>
    </asp:Content>